package com.example.auv_660.auvorderload;

import com.example.auv_660.autocontrolalgorithm.AutoControlTypel;
import com.example.auv_660.autocontrolalgorithm.Context;
import com.example.auv_660.util.Constants;

public class StartAutoControlOrderLoad extends OrderLoad {
    @Override
    public void doOrder(String order) {
        if (order.contains(Constants.START_AUTO_CONTROL_ORDER))
        {
            if (order.contains("afa"))
            {
                // TODO afa
                Context context = new Context(new AutoControlTypel());
                context.executeStrategy(order);
            }
            return;
        }
        else
        {
            OrderLoad nextOrder = this.getNextOrder();
            if (nextOrder != null)
            {
                nextOrder.doOrder(order);
            }
        }
    }
}
